package com.supersonic.backend.model;

import javax.persistence.CascadeType;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.ManyToOne;

@Entity
public class ItemType extends CommonFieldModel{
	
	@ManyToOne(cascade={CascadeType.ALL},fetch=FetchType.LAZY)
	private ItemCategory category;

	/**
	 * @return the category
	 */
	public ItemCategory getCategory() {
		return category;
	}

	/**
	 * @param category the category to set
	 */
	public void setCategory(ItemCategory category) {
		this.category = category;
	}

}
